package com.atguigu.guli.service.edu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author fan
 * @create 2021-06-27 23:14
 */
@EnableDiscoveryClient
@EnableFeignClients
@EnableTransactionManagement //启动声明式事务
@SpringBootApplication//(exclude = {DataSourceAutoConfiguration.class , RedisAutoConfiguration.class}) //排除自动配置
@ComponentScan(basePackages = {"com.atguigu.guli.service"})
public class ServiceEduApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceEduApplication.class,args);
    }
}
